package operation;

import book.BookList;

public class ExitOperation implements IOPeration {
    public  void  work (BookList bookList) {

        System.out.println("退出系统...");
        //防止内存泄露
        int currentSize=bookList.getUsedSize();
        for (int i=0;i<currentSize;i++){
            bookList.setBooks(i,null);
        }
        System.exit(0);
    }
}